<?php
/**
 * Created by PhpStorm.
 * User: 庆金
 * Date: 2019-12-31
 * Time: 21:40
 */
namespace app\common\lib;
class Redis {
    /**
     * 验证码前缀
     * @var string
     */
    public static $pre = 'sms_';

    /**
     * 存储验证码 key值
     * @param $phone
     * @return string
     */
    public static function smsKey($phone){
        return self::$pre.$phone;
    }
}